package com.zhb.lkd.controller;


import com.zhb.lkd.base.ResponseResult;
import com.zhb.lkd.pojos.entity.Business;
import com.zhb.lkd.service.IBusinessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author haibin
 * @since 2024-08-18
 */
@RestController
@RequestMapping()
@Slf4j
@Api(tags = "商圈管理相关接口")
public class BusinessController {
    @Resource
    private IBusinessService businessService;

    @GetMapping("/api/vm-service/businessType")
    @ApiOperation("查询商圈列表")
    public ResponseResult getBusinessType() {
        log.info("查询商圈列表");
        List<Business> business =businessService.getBusinessType();
        return ResponseResult.ok(business);
    }
}
